package team.jaman.autosell.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Logger implements Serializable {
    /**
     * 日志编号
     */
    private Integer loggerId;

    /**
     * 管理员编号
     */
    private Integer managerId;
    /**
     * 管理员对象
     */
    private Manager manager;

    /**
     * 用户编号
     */
    private Integer userId;
    
    /**
     * 用户
     */
    private Users users;

    /**
     * 操作内容
     */
    private String operatorContent;

    /**
     * 访问控制器开启时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss SSS",timezone = "GMT+8")
    private Date startTime;

    /**
     * 访问控制器结束时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss SSS",timezone = "GMT+8")
    private Date endTime;

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table logger
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.logger_id
     *
     * @return the value of logger.logger_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getLoggerId() {
        return loggerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.logger_id
     *
     * @param loggerId the value for logger.logger_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setLoggerId(Integer loggerId) {
        this.loggerId = loggerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.manager_id
     *
     * @return the value of logger.manager_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getManagerId() {
        return managerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.manager_id
     *
     * @param managerId the value for logger.manager_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setManagerId(Integer managerId) {
        this.managerId = managerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.user_id
     *
     * @return the value of logger.user_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.user_id
     *
     * @param userId the value for logger.user_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.operator_content
     *
     * @return the value of logger.operator_content
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getOperatorContent() {
        return operatorContent;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.operator_content
     *
     * @param operatorContent the value for logger.operator_content
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setOperatorContent(String operatorContent) {
        this.operatorContent = operatorContent == null ? null : operatorContent.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.start_time
     *
     * @return the value of logger.start_time
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.start_time
     *
     * @param startTime the value for logger.start_time
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.end_time
     *
     * @return the value of logger.end_time
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.end_time
     *
     * @param endTime the value for logger.end_time
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column logger.error_msg
     *
     * @return the value of logger.error_msg
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getErrorMsg() {
        return errorMsg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column logger.error_msg
     *
     * @param errorMsg the value for logger.error_msg
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg == null ? null : errorMsg.trim();
    }

	/**
	 * @return the manager
	 */
	public Manager getManager() {
		return manager;
	}

	/**
	 * @param manager the manager to set
	 */
	public void setManager(Manager manager) {
		manager.setManagerId(managerId);
		this.manager = manager;
	}

	/**
	 * @return the users
	 */
	public Users getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(Users users) {
		users.setUserId(userId);
		this.users = users;
	}

	@Override
	public String toString() {
		return "Logger [loggerId=" + loggerId + ", managerId=" + managerId + ", manager=" + manager + ", userId="
				+ userId + ", users=" + users + ", operatorContent=" + operatorContent + ", startTime=" + startTime
				+ ", endTime=" + endTime + ", errorMsg=" + errorMsg + "]";
	}
    
    
}